home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12146 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  778 b 

  1. Path: isonews.bbn.hp.com!hpbblb!news
  2. From: Matthias Dittrich <matti>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: string search?
  5. Date: 29 Mar 1996 09:12:58 GMT
  6. Organization: Hewlett-Packard Co.
  7. Message-ID: <4jg9iq$h4r@hpbblb.bbn.hp.com>
  8. References: <4jbnfk$cuq@dfw-ixnews6.ix.netcom.com>
  9. NNTP-Posting-Host: trabant.bbn.hp.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.07 9000/712)
  14. X-URL: news:4jbnfk$cuq@dfw-ixnews6.ix.netcom.com
  15.  
  16. rmor1@ix.netcom.com(Ricardo Mor ) wrote:
  17. >    How can I search a string of character in another string? for
  18. >example...
  19. >
  20. >
  21. >    string1 = "NEXT_TIME";
  22. >    string2 = "TIME";
  23. >
  24. >    how can I search for string1 in string2?
  25. >
  26. Use strstr().
  27.  
  28. Good luck,
  29. Matthias
  30.  
  31.